package com.lyl.label.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyl.label.model.dto.LabelGroupDTO;
import com.lyl.label.model.entity.LabelGroup;
import com.lyl.label.model.vo.LabelTreeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 标签组表(LabelGroup)表数据库访问层
 *
 * @author makejava
 * @since 2022-06-20 21:21:40
 */
@Mapper
@Repository
public interface LabelGroupDao extends BaseMapper<LabelGroup> {

    List<LabelGroupDTO> listByLevel(@Param("list") List<Integer> levelList);

    List<LabelGroupDTO> listByLevelAndKeyword(@Param("list") List<Integer> levelList,@Param("keyword") String keyword);

    List<LabelTreeVO> labelTree(String labelName);
}
